package cn.exrick.xboot.modules.transport.service.impl;

import cn.exrick.xboot.modules.transport.mapper.FeedbackMapper;
import cn.exrick.xboot.modules.transport.entity.Feedback;
import cn.exrick.xboot.modules.transport.param.QueryFeedbackParam;
import cn.exrick.xboot.modules.transport.service.FeedbackService;
import cn.exrick.xboot.modules.transport.vo.FeedbackVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 反馈信息-包含订单接口实现
 * @author gj
 */
@Slf4j
@Service
@Transactional
public class FeedbackServiceImpl extends ServiceImpl<FeedbackMapper, Feedback> implements FeedbackService {

    @Autowired
    private FeedbackMapper feedbackMapper;

    @Override
    public IPage<FeedbackVo> getByCondition(Page page, QueryFeedbackParam param) {
        return feedbackMapper.getByCondition(page, param);
    }

    @Override
    public FeedbackVo getFeedbackById(Long id) {
        return feedbackMapper.getFeedbackById(id);
    }
}